
aczjbx_articledetail()
function aczjbx_articledetail(){
$.ajaxSetup({async:false})
$.getJSON("/articlelist/index.json",(data)=>{
    var indexlist=data["data"]
    document.getElementById("archiveCount").innerText=Object.getOwnPropertyNames(indexlist).length;

    console.log(indexlist)
    var srlist=location.search.substr(1).split("|")
    console.log(srlist);
    document.getElementById("shareCount").innerText=srlist.length;
    document.getElementsByTagName("title")[0].innerText=`郑家宝向您分享了 ${srlist.length} 篇作文`
    for (let index = 0; index < srlist.length; index++) {
      $.getJSON(indexlist[srlist[index]].origin,(data)=>{
        document.getElementById("collapse_").insertAdjacentHTML("beforeend",`
        <article itemscope itemtype="http://schema.org/Article">
        <header class="post-header">
    
          <div class="post-meta" style="${data["data"].beingVotedDown?"text-decoration:line-through;color:#aaa!important":"" }">
            <time itemprop="dateCreated"
                  datetime="${data["data"].datePublishedtime}"
                  content="${data["data"].datePublished}">
                  ${data["data"].datePublished.substr(5)}
            </time>
          </div>
    
          <h3 class="post-title">
              <a class="post-title-link" href="/articledetail/?${data["data"].hash}" itemprop="url">
              <span style="display:${data["data"].ModifiedVersion?"inline":"none"};background-color: darkmagenta;color: aliceblue;border-radius: 5px;font-size: 0.75em;padding-top: 3px;padding-bottom: 3px;padding-right: 5px;padding-left: 5px;">改编</span>
                <span itemprop="name" style="${data["data"].beingVotedDown?"text-decoration:line-through;color:#aaa!important":"" }"s>${data["data"].headline}</span>
              </a>
          </h3>
    
        </header>
      </article>
        `)

})
    }
})
$.ajaxSetup({async:true})
}